package model;

import java.io.File;
/**
 * this class is Item Model  which saves the Item Model fields data ,which extends AbstractModel
 * @author Moran
 *
 */

public class Item extends AbstractModel {
	/**item id auto increment by 1 in the DB*/
	private int id;
	/**item name*/
	private String name;
	/**item discription*/
	private String discription;
	/**item Image File path*/
	private File Imagepath;
	/**item Image File name*/
	private String filename;
	/**Image File Stored in byte array*/
	private byte[] blob;
	/**item price*/
	private float price;
	/**
	 * constructor
	 */
	public Item() {
		  name=null;
		  discription=null;
		  Imagepath=null;
		  filename=null;
		  blob=null;
	}
	/**
	 * get Item id
	 * @return integer
	 */
	public int getId() {
		return id;
	}
	/**
	 * set item id
	 * @param int id
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * get Item name
	 * @return String
	 */
	public String getName() {
		return name;
	}
	/**
	 * set item name
	 * @param String
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * get Item description
	 * @return String
	 */
	public String getDiscription() {
		return discription;
	}
	/**
	 * set item description
	 * @param String
	 */
	public void setDiscription(String discription) {
		this.discription = discription;
	}
	/**
	 * get Item Price
	 * @return float
	 */
	public float getPrice() {
		return price;
	}
	/**
	 * set item price
	 * @param float price
	 */
	public void setPrice(float price) {
		this.price = price;
	}
	/**
	 * get Item Image
	 * @return  byte[] blob
	 */
	public byte[] getBlob() {
		return blob;
	}
	/**
	 * set Item Image
	 * @param byte[] blob
	 */
	public void setBlob(byte[] blob) {
		this.blob = blob;
	}
	/**
	 * get Image file path
	 * @return  File Image path
	 */
	public File getImagepath() {
		return Imagepath;
	}
	/**
	 * set Item Image path
	 * @param File image path
	 */
	public void setImagepath(File imagepath) {
		Imagepath = imagepath;
	}
	/**
	 * get Image name
	 * @return  String Image name
	 */
	public String getFilename() {
		return filename;
	}
	/**
	 * set Item Image name
	 * @param String Image name
	 */
	public void setFilename(String filename) {
		this.filename = filename;
	}
}
